<%@page import="java.util.*"%>
<%@page import="QRCG.DatabaseManager"%>
<%@page import="java.text.*"%>

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Game Information</title>
</head>
<body>

<%

String gameId = request.getParameter("game_id");

DatabaseManager connection = new DatabaseManager();
connection.connect();

String name = connection.getGameInformation(DatabaseManager.GameInformation.NAME, gameId);
String creator  = connection.getGameInformation(DatabaseManager.GameInformation.CREATOR_ID, gameId);
String desc     = connection.getGameInformation(DatabaseManager.GameInformation.DESCRIPTION, gameId);
String begin_date = connection.getGameInformation(DatabaseManager.GameInformation.BEGIN_DATE, gameId);
String end_date   = connection.getGameInformation(DatabaseManager.GameInformation.END_DATE, gameId);
String location = connection.getGameInformation(DatabaseManager.GameInformation.LOCATION, gameId);

%>


<p> Game:  <%=name%></p>

<p> Game Creator: <%=creator%></p>
<p> Game Description: <%=desc%></p>

<p> Game begins:  <%=begin_date%></p>

<p> Game ends: <%=end_date%></p>

<p> Game takes place in: <%=location%></p>





</body>
</html>